package com.woniuxy.light_smart.mapper;

import com.woniuxy.light_smart.entity.Permission;
import com.woniuxy.light_smart.vo.MenuVo;

import java.util.List;

/**
* @author asus
* @description 针对表【permission】的数据库操作Mapper
* @createDate 2022-12-06 11:48:35
* @Entity com.woniuxy.light_smart.entity.Permission
*/
public interface PermissionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    /**
     * @param tel
     * @param pid
     * @return 返回菜单
     */
    List<MenuVo> selectByTelOrMail(String tel,Integer pid);

}
